Ext.define('Admin.app.archive.CustomController', {
	        extend : 'Admin.app.CrudController',

	        onRefreshDefault : function(view, record, params) {
		        var me = this, store = me.getStore(view.getBind().store.stub.name);
		        var extraParams = {
			        id : me.getCr().data.id
		        };
		        store.getProxy().extraParams = extraParams;
		        store.reload();
	        },

	        beforeInsert : function(record, parent) {
		        // TODO 新建记录时的操作
	        },

	        onInsertClick : function(btn) {
		        var me = this, grid = btn.ownerCt.ownerCt, parent = me.getCr();
		        if (!parent)
			        return;
		        var record = Ext.create(grid.getStore().model, {
			                name : '新建' + grid.title,
			                city : parent.data.id
		                });
		        record.store = grid.getStore();
		        me.beforeInsert(record, parent);
		        me.showDetail(grid.detail, record);
	        }

        });